package com.niiwoo.civet.user.dao.mapper;

import com.niiwoo.civet.user.dao.entity.QuestionKeyRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserQuestionKeyRelationMapperExt extends UserQuestionKeyRelationMapper{
    List<QuestionKeyRelation> selectProblemIdByKeyAndIdentity(@Param("keywordId") Long keywordId,@Param("identityTag") byte identityTag);

    List<QuestionKeyRelation> selectProblemIdByKey(@Param("keywordId") Long keywordId);

    QuestionKeyRelation selectProblemIdByKeyAndId(@Param("keywordId") Long keywordId,@Param("questionId") Long questionId);

    QuestionKeyRelation selectProblemIdByKeyAndOrder(@Param("keywordId") Long keywordId,@Param("orderNumber") Integer orderNumber);


    QuestionKeyRelation selectProblemByQuestionAndIdentity(@Param("questionId") Long questionId);
}